<%@ include file="/WEB-INF/views/commonJSTL.jsp" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

<c:set var="classTemp" value="form_align35" />
<div style="clear:both;" id="divDetailActiveSubstance">
<form id="formDialogDetailActiveSubstance">
	<fieldset>		
		<legend><b><fmt:message key="title.activePrinciple"/></b></legend>		
		<div style="clear:both;">
			<label class="${classTemp}"><fmt:message key="form.name"/>:</label>
			<label>${activeSubstance.name}</label>
		</div>
		<div style="clear:both;">
			<label class="${classTemp}"><fmt:message key="form.synonyms"/>:</label>
			<label>${activeSubstance.synonyms}</label>
		</div>
		<div style="clear:both;">
			<label class="${classTemp}"><fmt:message key="form.therapeuticAction"/>:</label>
			<label>${activeSubstance.therapeuticAction}</label>
		</div>
		<div style="clear:both;">
			<label class="${classTemp}"><fmt:message key="form.properties"/>:</label>
			<label>${activeSubstance.properties}</label>
		</div>	
		<br/>
		<div style="clear:both;">
			<c:if test="${(not empty activeSubstance.attributeCollection)}" >	
			<label class="${classTemp}"><fmt:message key="form.attributes"/>:</label>
				<table class="tabla_decorado">
			     	<thead>
				     	<tr>
							<th class='th_decoradoRowspan'><fmt:message key='table.name'/></th>
							<th class='th_decoradoRowspan'><fmt:message key='table.description'/></th>
							<th class='th_decoradoRowspan'><fmt:message key='table.order'/></th>
						</tr>
			     	</thead>				
			     	<tbody>
						<c:forEach items="${activeSubstance.attributeCollection}" var="item">
				     		<tr class='tr_decorado'>
								<td class="td_decorado">${item.name}</td>
								<td class="td_decorado">${item.detail}</td>
								<td class="td_decorado">${item.order}</td>
							</tr>
						</c:forEach> 
			    	</tbody>
				</table>
			</c:if>
		</div>	
	</fieldset>	
</form>
</div>




